home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Re View offsets when embeded < prev    next >
Encoding:
Internet Message Format  |  1996-08-15  |  2.8 KB  |  [TEXT/ttxt]

  1. Subject:     Re: View offsets when embeded
  2. Sent:        7/16/96 7:20 AM
  3. Received:    7/16/96 8:41 AM
  4. From:        Scott Daniels, scottdfl@sprynet.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Hi Henri,
  9.  
  10. I tried embedding in a non-ODF container like you asked, and the problem
  11. goes away, so it appears to be a problem only when embedding in an ODF
  12. container. For another clue, (my part is based on ODF Draw and so uses the
  13. ruler from it) when I turn the rulers on, my selection is offset even
  14. further from the bitmap rendering by the amount of the rulers. Again,
  15. everything works just fine when embedded in the Draw progam that comes
  16. with OpenDoc itself and when not embedded. Is this an ODF bug then? Or is
  17. there something I am not doing correctly?
  18.  
  19. A second embedding problem I have is when I embed in either draw program
  20. (ODF & non-ODF) my content is clipped to show only the upper left corner.
  21. This only happens if I 1) drag my stationary into the container & 2)
  22. import my data. If I save after step (1) and then reopen before importing,
  23. my drawing is no longer clipped. Also, if I embed in say "Panel" part, it
  24. works fine (no clipping). Any ideas for this one?
  25.  
  26. Thanks,
  27. Scott
  28.  
  29. ----------
  30. > From: Henri Lamiraux <lamiraux@apple.com>
  31. > To: OpenDoc Development Framework Discussion List
  32. <ODF-Interest@CILabs.ORG>
  33. > Subject: Re: View offsets when embeded
  34. > Date: Friday, July 12, 1996 4:56 PM
  35. > >Hi ODF team,
  36. > >
  37. > >My part uses an offscreen bitmap to draw the content into, which is
  38. then
  39. > >blasted back to the main view of my frame. When I edit the objects in
  40. that
  41. > >view however I do it directly in the view, so the view and the
  42. offscreen
  43. > >bitmap must be perfectly registered. I have accomplished this feat when
  44. I
  45. > >launch my part directly. However, when I embed my part into ODF draw
  46. and
  47. > >try to edit an object it appears 2-3 pixels off in both x & y
  48. directions.
  49. > >This also appears to be the width of the dbl-line border around my
  50. frame.
  51. > >Obviously, the view offsets are different when embeded vs. not embeded.
  52. > >
  53. > >Would you please enlighten me on the differences in transforms, etc.
  54. for
  55. > >these two cases, and where I might be in error in my code?
  56. > >
  57. > >Thanks in advance,
  58. > >Scott
  59. > >-- 
  60. > >Scott Daniels             scottdfl@sprynet.com
  61. > >"Life appears the way you choose to see it."
  62. > Does it happen only with ODF based containers?. Do you get the same 
  63. > result with for example the PanelEditor part?
  64. > ........................................................................
  65. >  Henri Lamiraux                                      lamiraux@apple.com
  66. >  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  67. > ........................................................................
  68.